package com.dgut.crm.common.util;

import java.util.ArrayList;
import java.util.List;

public class ExtJsonResult <T>
{
	private boolean success= true;
	private String msg= "";
	
	private List<T> result =  new ArrayList<T>();
	
	public ExtJsonResult() {}
	
	public ExtJsonResult(boolean success) {
		this.success = success;
	}
	
	public ExtJsonResult(boolean success,String msg) {
		this.success = success;
		this.msg = msg;
	}
	
	public ExtJsonResult(boolean success,String msg,List<T> result) {
		this.success = success;
		this.msg = msg;
		this.result = result;
	}
	
	
	public boolean isSuccess() {
		return success;
	}
	public String getMsg() {
		return msg;
	}

	public List<T> getResult() {
		return result;
	}	
	
	
}
